﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RssDataModel
{
    class DataClassesCustomEntity
    {
    }

    public partial class article
    {
        /// <summary>
        /// custom "Equals" -method, so we can use our definition of equality in comparisons
        /// </summary>
        public override bool Equals(object obj)
        {
            if (obj == null) return false;
            article other = obj as article;
            if (other == null) return false;
            return other._Weblink == this._Weblink;
        }

        /// <summary>
        /// custom "GetHashCode" -method, so we can use our definition of equality in comparisons
        /// </summary>
        public override int GetHashCode()
        {
            // Which is preferred?

            return _Weblink.GetHashCode();

            //return this.FooId.GetHashCode();
        }
    }

}
